Natalie Elphick
Bioinformatician I
Bioinformatics Core
What is your level of experience with coding/data analysis?
What is R and why should you use it?
The RStudio interface
File types
Error messages
Variables
Types & data structures
10 min break
Math and logic operations
Functions and libraries
Reading data into R
.R
.RmdR code with Markdown for text
formatting.Rmd file in RStudio to
explore the basics of how they work:## [1] 1
Which variable name is not valid in R?
10:00
if ("Akita" %in% dog_breeds) {
print("dog_breeds already contains Akita")
} else {
dog_breeds <- c("Akita", dog_breeds)
}## [1] "dog_breeds already contains Akita"
## Already contains this dog
## [1] "German Shepard" "Labrador Retriever" "Akita"
## [4] "Bulldog"
example_code/1_convert_syntax_example.R for an example use
caseBoth of these have stringent requirements for packages they host (eg. for BioConductor they have to run on all major operating systems)
Prefer BioConductor packages if available over CRAN
Prefer CRAN packages over ones only hosted on GitHub
R Markdown: The Definitive Guide : Excellent R markdown reference